package com.bruce.pattern.structural.proxy.dynamicproxy;

import lombok.extern.slf4j.Slf4j;

/**
 * Created by bruce on 2018/11/9 21:07
 */
@Slf4j
public class DBQueryImpl implements DBQueryI {

    public DBQueryImpl() {
       log.info("DBQueryImpl create");
    }

    @Override
    public String userName(String name) {
        return "hello " + name;
    }

    @Override
    public int userAge() {
        return 15;
    }

    protected void helloCglib(){
        log.info("helloCglib");
    }

     void helloCglib2(){
        log.info("helloCglib2");
    }


}
